﻿<%@ Page Language="C#" CodeBehind="EZVRequestContract.aspx.cs" AutoEventWireup="True" Inherits="BEGDC.CC.Web.EZVisit.Common.EZVRequestContract" %>

<%@ OutputCache Location="None" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<html>
<head>
    <title>EV Request Contract Input</title>
    <base target="_self" />
    <meta http-equiv="Expires" content="0" />
    <link href="../../css/global.css" rel="stylesheet" type="text/css" />
    <link href="../../css/ezform.css" type="text/css" rel="stylesheet" />

    <script type="text/javascript" src="../../js/jquery-1.4.4.min.js"></script>

</head>
<body>
    <h3 class="ev-header-section">
        &nbsp;CONTRACT INFORMATION 合同信息</h3>
    <form id="Form1" method="post" runat="server" class="tab-container">
    <asp:ValidationSummary ID="vs1" runat="server" ShowMessageBox="true" ShowSummary="false" />
    <table width="100%" class="padding5">
        <tr class="ev-row">
            <td class="title" width="45%">
                <span class="Star">*</span>Contract No.：<br />
                合同号&nbsp;&nbsp;
            </td>
            <td class="val">
                <asp:TextBox ID="tbContractNo" runat="server" CssClass="TEXTBOX" />
                <asp:RequiredFieldValidator ID="rfv1" runat="server" ControlToValidate="tbContractNo" ErrorMessage="Contract number cannot be empty."
                    Display="None" />
                <asp:Literal ID="vw_ContractNo" runat="server" />
            </td>
        </tr>
        <tr class="ev-row">
            <td class="title">
                <span class="Star">*</span>Budget reserved（¥）：<br />
                本次考察需要的预算&nbsp;&nbsp;
            </td>
            <td class="val">
                <asp:TextBox ID="tbReservedBudget" runat="server" CssClass="TEXTBOX" MaxLength="15" />
                <asp:RequiredFieldValidator ID="rfv2" runat="server" ControlToValidate="tbReservedBudget" ErrorMessage="Budget cannot be empty."
                    Display="None" />
                <asp:RegularExpressionValidator ID="rev1" runat="server" ValidationExpression="\d+\.?\d*" ControlToValidate="tbReservedBudget"
                    ErrorMessage="Budget should be in numberic format." Display="None" />
                <asp:Label ID="vw_ReservedBudget" runat="server" />
            </td>
        </tr>
        <tr class="ev-row" id="secContract6" visible="false" runat="server">
            <td class="title">
                <span class="Copy-content">Legal Entity：<br />
                    阿朗签约方法人实体&nbsp;&nbsp;</span>
            </td>
            <td class="val">
                <asp:DropDownList ID="edt_LegalEntity" runat="server">
                </asp:DropDownList>
                <img alt="Tip" src="../../images/Icon_Sample.jpg" id="imgTip" />
            </td>
        </tr>
        <tr class="ev-row" id="secContract0" runat="server" visible="false">
            <td class="title">
                <span class="Star">*</span>Visit Budget：<br />
                属于考察部分的预算&nbsp;&nbsp;
            </td>
            <td class="val">
                <asp:TextBox ID="txtVisitBudget" runat="server" CssClass="TEXTBOX" MaxLength="15" onKeyUp="javascript:calculate();" />
                <asp:RequiredFieldValidator ID="rfv5" runat="server" ControlToValidate="txtVisitBudget" ErrorMessage="Visit budget cannot be empty."
                    Display="None" />
                <asp:RegularExpressionValidator ID="rev2" runat="server" ValidationExpression="\d+\.?\d*" ControlToValidate="txtVisitBudget"
                    ErrorMessage="Visit budget should be in numberic format." Display="None" />
            </td>
        </tr>
        <tr class="ev-row" id="secContract3" runat="server" visible="false">
            <td class="title">
                <span class="Star">*</span>Training Budget：<br />
                属于培训部分的预算&nbsp;&nbsp;
            </td>
            <td class="val">
                <asp:TextBox ID="txtTrainBudget" runat="server" CssClass="TEXTBOX" MaxLength="15" onKeyUp="javascript:calculate();" />
                <asp:RequiredFieldValidator ID="rfv6" runat="server" ControlToValidate="txtTrainBudget" ErrorMessage="Training budget cannot be empty."
                    Display="None" />
                <asp:RegularExpressionValidator ID="rev3" runat="server" ValidationExpression="\d+\.?\d*" ControlToValidate="txtTrainBudget"
                    ErrorMessage="Train budget should be in numberic format." Display="None" />
            </td>
        </tr>
        <tr class="ev-row" id="secContract7" runat="server" visible="false">
            <td class="title">
                <span class="Star">*</span>Total（¥）：<br />
                总预算&nbsp;&nbsp;
            </td>
            <td class="val">
                <asp:Label ID="vw_TotalBudget" runat="server" />
            </td>
        </tr>
        <tr class="ev-row" id="secContract1" runat="server" visible="false">
            <td class="title">
                <span class="Star">*</span>Cost Center：<br />
                成本中心&nbsp;&nbsp;
            </td>
            <td class="val">
                <asp:TextBox ID="txtCostCenter" runat="server" CssClass="TEXTBOX" />
                <asp:RequiredFieldValidator ID="rfv3" runat="server" ControlToValidate="txtCostCenter" ErrorMessage="Cost Center cannot be empty."
                    Display="None" />
            </td>
        </tr>
        <tr class="ev-row" id="secContract4" runat="server" visible="false">
            <td class="title">
                WBSP：<br /> WBS项目&nbsp;&nbsp;
            </td>
            <td class="val">
                <asp:Label ID="lblWBSP" runat="server" />
            </td>
        </tr>
        <tr class="ev-row" id="secContract2" runat="server" visible="false">
            <td class="title">
                <span class="Star">*</span>WBSE：<br />WBS元素&nbsp;&nbsp;
            </td>
            <td class="val">
                <asp:DropDownList ID="ddlWBSE" runat="server" AutoPostBack="true" OnSelectedIndexChanged="ddlWBSE_SelectedIndexChanged">
                </asp:DropDownList>
                <asp:RequiredFieldValidator ID="rfv4" runat="server" ControlToValidate="ddlWBSE" ErrorMessage="The contract did not have WBSE entered in the database."
                    Display="None" InitialValue="" />
                <br />
                <asp:Label ID="lblWBSED" runat="server" />
            </td>
        </tr>
        <tr class="ev-row" id="secContract5" runat="server" visible="false">
            <td class="title">
                Invoice Header：<br />
                发票抬头&nbsp;&nbsp;
            </td>
            <td class="val">
                <asp:Label ID="lblInvoiceHeader" runat="server" />
            </td>
        </tr>
        <tr>
            <td colspan="2" class="ac">
                <br />
                <asp:Button ID="btnSave" runat="server" Text="Save" CssClass="btn" OnClick="btnSave_Click"></asp:Button>&nbsp;
                <input type="button" value="Close" class="btn" onclick="window.close(); window.returnValue='close';" />
            </td>
        </tr>
    </table>
    </form>
    <div id="tip" class="hideValidation">
        <table width="100%" class="trwhitebg">
            <tbody>
                <tr class="ev-row">
                    <td class="val">
                    </td>
                    <td class="val">
                        Entity Chinese Name公司中文名称
                    </td>
                    <td class="val">
                        Entity English Name公司英文名称
                    </td>
                </tr>
                <tr class="ev-row">
                    <td class="val">
                        ASB
                    </td>
                    <td class="val">
                        上海贝尔股份有限公司
                    </td>
                    <td class="val">
                        Alcatel-Lucent Shanghai Bell
                    </td>
                </tr>
                <tr class="ev-row">
                    <td class="val">
                        LTC
                    </td>
                    <td class="val">
                        朗讯科技投资有限公司
                    </td>
                    <td class="val">
                        Lucent Technologies Investment Co., Ltd.
                    </td>
                </tr>
                <tr class="ev-row">
                    <td class="val">
                        LTNT
                    </td>
                    <td class="val">
                        南京朗讯科技通信有限公司
                    </td>
                    <td class="val">
                        Lucent Technologies Nanjing
                    </td>
                </tr>
                <tr class="ev-row">
                    <td class="val">
                        LTON
                    </td>
                    <td class="val">
                        朗讯科技光网络有限公司
                    </td>
                    <td class="val">
                        L.T. ONG R&D (China)
                    </td>
                </tr>
                <tr class="ev-row">
                    <td class="val">
                        SKD
                    </td>
                    <td class="val">
                        青岛朗讯科技通讯设备服务有限公司
                    </td>
                    <td class="val">
                        LT Qingdao Telecom Equip.
                    </td>
                </tr>
                <tr class="ev-row">
                    <td class="val">
                        CKD
                    </td>
                    <td class="val">
                        青岛朗讯科技通讯设备有限公司
                    </td>
                    <td class="val">
                        Lucent Qingdao Telecom System
                    </td>
                </tr>
                <tr class="ev-row">
                    <td class="val">
                        LTIC
                    </td>
                    <td class="val">
                        上海朗讯科技有限公司
                    </td>
                    <td class="val">
                        LT Information & Communication
                    </td>
                </tr>
                <tr class="ev-row">
                    <td class="val">
                        QTE
                    </td>
                    <td class="val">
                        青岛朗讯科技通讯企业有限公司
                    </td>
                    <td class="val">
                        LT Qingdao Telecom Ent Co, Ltd
                    </td>
                </tr>
                <tr class="ev-row">
                    <td class="val">
                        ASBIP
                    </td>
                    <td class="val">
                        上海贝尔阿尔卡特信息产品有限公司
                    </td>
                    <td class="val">
                        ALCATEL SHANGHAI BELL INFORMAT
                    </td>
                </tr>
                <tr class="ev-row">
                    <td class="val">
                        ASBSC
                    </td>
                    <td class="val">
                        上海贝尔软件有限公司
                    </td>
                    <td class="val">
                        Alcatel-Lucent Shanghai Bell Software
                    </td>
                </tr>
                <tr class="ev-row">
                    <td class="val">
                        SBABS
                    </td>
                    <td class="val">
                        上海贝尔企业通信有限公司
                    </td>
                    <td class="val">
                        Alcatel-Lucent Shanghai Bell Enterprise Communications Co., Ltd.
                    </td>
                </tr>
            </tbody>
        </table>
    </div>

    <script type="text/javascript">
        function calculate() {
            var v = parseFloat($('#<%= this.txtVisitBudget.ClientID %>').val()) || 0;
            var t = parseFloat($('#<%= this.txtTrainBudget.ClientID %>').val()) || 0;
            $('#<%= this.vw_TotalBudget.ClientID %>').text(v + t);
        }

        $('#imgTip').mouseover(function() {
            $('#tip').css({
                'top': '140px',
                'left': '10px',
                'position': 'absolute',
                'border': '2px solid #555',
                'background': '#eee',
                'font-size': '12px',
                'margin': '0 auto',
                'text-align': 'center',
                'width': '680px',
                'opacity': '0.9'
            }).show();
        }).mouseout(function() {
            $('#tip').hide();
        });

    </script>

</body>
</html>